package com.hue.gulimailseckill.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 姚凤桥
 * @Date: 2021/12/23 21:34
 * @Description: Rabbit配置
 */
@Configuration
public class RabbitConfig {
    /**
     * 配置rabbit的消息转换器
     *
     * @return
     */
    @Bean
    public Jackson2JsonMessageConverter jackson2JsonMessageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
